class Solution:
    """
    @param: n: n
    @param: k: the k th permutation
    @return: return the k-th permutation
    """
    def getPermutation(self,n,k):
        # write your code here
        y = ''
        for i in range(1,n+1):
            y = y+str(i)
        print(y)

if __name__ == '__main__':
    test = Solution()
    test.getPermutation(3,1)